<!doctype html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<link type="text/css" rel="stylesheet" href="quality-web.css">
		<title>Quality Web</title>

		<!-- define CSS for loading message at application startup -->
		<style type="text/css">
        body { overflow:hidden }
        #loading {
            border: 1px solid #ccc;
            position: absolute;
            left: 45%;
            top: 40%;
            padding: 2px;
            z-index: 20001;
            height: auto;
        }

        #loading a {
            color: #225588;
        }

        #loading .loadingIndicator {
            background: white;
            font: bold 13px tahoma, arial, helvetica;
            padding: 10px;
            margin: 0;
            height: auto;
            color: #444;
        }

        #loadingMsg {
            font: normal 10px arial, tahoma, sans-serif;
        }
        </style>

		<!-- load GWT compiled module -->
		<script> var isomorphicDir = "com.quality.web.QualityWeb/sc/"; </script>
		<script language="javascript" src="com.quality.web.QualityWeb/com.quality.web.QualityWeb.nocache.js"></script>		
	</head>

	<body>

		<!-- enable history support -->
		<iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>

		<!-- add loading indicator while the application is being loaded -->
		<div id="loadingWrapper">
			<div id="loading">
    			<div class="loadingIndicator">
    		    	<img src="images/loading.gif" width="16" height="16" style="margin-right:8px;float:left;vertical-align:top;"/>Quality Web<br/>
    	    		<span id="loadingMsg">Loading Quality Web...</span>
	    	    </div>
			</div>
		</div>

<!-- load SmartClient APIs -->
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Core API...';</script>
<script src=com.quality.web.QualityWeb/sc/modules/ISC_Core.js></script>
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Foundation API...';</script>
<script src='com.quality.web.QualityWeb/sc/modules/ISC_Foundation.js'></script>
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Containers API...';</script>
<script src='com.quality.web.QualityWeb/sc/modules/ISC_Containers.js'></script>
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Grids API...';</script>
<script src='com.quality.web.QualityWeb/sc/modules/ISC_Grids.js'></script>
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Forms API...';</script>
<script src='com.quality.web.QualityWeb/sc/modules/ISC_Forms.js'></script>
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Rich Text API...';</script>
<script src='com.quality.web.QualityWeb/sc/modules/ISC_RichTextEditor.js'></script>
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Calendars API...';</script>
<script src='com.quality.web.QualityWeb/sc/modules/ISC_Calendar.js'></script>
<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Data API...';</script>
<script src='com.quality.web.QualityWeb/sc/modules/ISC_DataBinding.js'></script>

<!-- determine and set skin -->
<script>
function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

var currentSkin = readCookie('skin_name_2_2');
if (currentSkin == null) currentSkin = "Enterprise";
</script>

<script type="text/javascript">document.getElementById('loadingMsg').innerHTML = 'Loading Skin...';</script>
<script type="text/javascript">
document.write("<"+"script src=com.quality.web.QualityWeb/sc/skins/" + currentSkin + "/load_skin.js?isc_version=7.1.js><"+"/script>");
</script>

	</body>
</html>
